package com.kirk.crawler.ui.style;

import javax.swing.*;
import javax.swing.plaf.ColorUIResource;
import java.awt.*;

/**
 *  <p> ColorDefinitions.java </p>
 *
 * @Author      kirkliu
 * @Date        2020-08-29 22:26
 * @version     1.0.0
 * @Description Colors used on app.
 */
public class ColorDefinitions {

	/** The Constant TITLE_DIALOG_FONT_COLOR. */
	public static final Color TITLE_DIALOG_FONT_COLOR = Color.WHITE;

	/** The Constant WARNING_COLOR. */
	public static final Color WARNING_COLOR = Color.RED;

	/** The Constant GENERAL_UNKNOWN_ELEMENT_FOREGROUND_COLOR. */
	public static final Color GENERAL_UNKNOWN_ELEMENT_FOREGROUND_COLOR = Color.RED;

	/**
	 * Inits the colors.
	 */
	public static void initColors() {
		UIManager.put("ToolTip.border", BorderFactory.createLineBorder(GuiUtils.getLookAndFeelColor("borderColor")));
		UIManager.put("ToolTip.background", new ColorUIResource(Color.WHITE));
		//UIManager.put("ToolTip.foreground", new ColorUIResource(Color.BLACK));
	}

}
